//
//  Common.swift
//  weibo
//
//  Created by blue on 16/4/18.
//  Copyright © 2016年 blue. All rights reserved.
//

import UIKit

//屏幕宽高
let KWIDTH = UIScreen.mainScreen().bounds.width
let KHEIGHT = UIScreen.mainScreen().bounds.height

//字体颜色
let KThemeColor = UIColor.orangeColor()

//RGB颜色
func RGB(red red: CGFloat, green: CGFloat, blue: CGFloat) -> UIColor{

    return UIColor(red: red/255, green: green/255, blue: blue/255, alpha: 1)
}

//随机色
func RandomColor() ->UIColor{

let r = random() % 256
let g = random() % 256
let b = random() % 256

    return RGB(red: CGFloat(r), green: CGFloat(g), blue: CGFloat(b))
}